-- CALC_EXCHANGE_COST
-- 计算玩家每日可兑换次数

-- @param id 兑换类型
return function(id, times)
    -- id为兑换id，times是今日已兑换次数
    local cost = {2, "gem", 0};
    
    if times < 31 then
        cost[3] = 1;
    elseif times < 51 then
        cost[3] = 2;
    elseif times < 71 then
        cost[3] = 3;
    elseif times < 91 then
        cost[3] = 4;
    else
        cost[3] = 5;
    end
    
    return cost;
end
